package com.gw.detail.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gw.detail.domain.Haenger;
import com.gw.detail.mapper.HaengerMapper;
import com.gw.detail.service.IHaengerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 挂车技术数据Service业务层处理
 *
 * @author WangBin
 * @date 2021-04-30
 */
@Service
public class HaengerServiceImpl extends ServiceImpl<HaengerMapper,Haenger> implements IHaengerService {
    @Autowired
    private HaengerMapper haengerMapper;

    /**
     * 查询挂车技术数据
     *
     * @param id 挂车技术数据ID
     * @return 挂车技术数据
     */
    @Override
    public Haenger selectHaengerById(Long id) {
        return haengerMapper.selectHaengerById(id);
    }

    /**
     * 查询挂车技术数据列表
     *
     * @param haenger 挂车技术数据
     * @return 挂车技术数据
     */
    @Override
    public List<Haenger> selectHaengerList(Haenger haenger) {
        return haengerMapper.selectHaengerList(haenger);
    }

    /**
     * 新增挂车技术数据
     *
     * @param haenger 挂车技术数据
     * @return 结果
     */
    @Override
    public int insertHaenger(Haenger haenger) {
        return haengerMapper.insertHaenger(haenger);
    }

    /**
     * 修改挂车技术数据
     *
     * @param haenger 挂车技术数据
     * @return 结果
     */
    @Override
    public int updateHaenger(Haenger haenger) {
        return haengerMapper.updateHaenger(haenger);
    }

    /**
     * 批量删除挂车技术数据
     *
     * @param ids 需要删除的挂车技术数据ID
     * @return 结果
     */
    @Override
    public int deleteHaengerByIds(Long[] ids) {
        return haengerMapper.deleteHaengerByIds(ids);
    }

    /**
     * 删除挂车技术数据信息
     *
     * @param id 挂车技术数据ID
     * @return 结果
     */
    @Override
    public int deleteHaengerById(Long id) {
        return haengerMapper.deleteHaengerById(id);
    }
}
